//
//  ProgramBannerTableViewCell.m
//  CoolFM
//
//  Created by 曹曹 on 16/9/1.
//  Copyright © 2016年 曹曹. All rights reserved.
//

#import "ProgramBannerTableViewCell.h"
#import "GXCycleImages.h"
#import "ProgramBanners.h"

@interface ProgramBannerTableViewCell ()

@end

@implementation ProgramBannerTableViewCell

- (void)setBanners:(NSArray<ProgramBanners *> *)banners {
    _banners = banners;
    NSMutableArray *images = [NSMutableArray array];
    for (ProgramBanners *banner in banners) {
        [images addObject:banner.banner_image_url];
    }
    _cycleView.imagesArray = images;
    _cycleView.placeholder = @"tts-navbar";
}

- (void)awakeFromNib {
    [super awakeFromNib];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
